#define _CRT_SECURE_NO_WARNINGS

#include"SList.h"

void test()
{
	SLTNode* plist = NULL;

	SLTPushBack(&plist, 10);
	/*SLTPrint(plist);
	SLTPopBack(&plist);*/
	//SLTPrint(plist);

	SLTPushFront(&plist, 3);
	SLTPushFront(&plist, 5);
	SLTPushFront(&plist, 7);
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 9);

	//SLTPrint(plist);

	//SLTPushBack(&plist, 10);
	//SLTPushBack(&plist, 1);
	//SLTPushBack(&plist, 2);
	//SLTPushBack(&plist, 3);
	//SLTPrint(plist);
	//SLTPopFront(&plist);
	//SLTPrint(plist);
	//SLTPopFront(&plist);
	//SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);

	//SLTErase(&plist, SLTFind(plist, 7));
	//SLTPrint(plist);
	//SLTInsertAfter(SLTFind(plist, 3), 100);
	//SLTPrint(plist);

	SLTEraseAfter(SLTFind(plist, 7));
	SLTPrint(plist);
}

int main()
{
	test();

	return 0;
}